<?php
	$css_list[0]['url'][] = './tpl/css/tweetlist.css';
	$css_list[0]['url'][] = './tpl/css/topic.css';
	$css_list[0]['url'][] = './tpl/css/event.css';
?>
<!--{template inc/header}-->
<div id="body" class="fm960">
	<div id="content" class="fl">
		<div class="piece2">
			<div class="piece2_hd"></div>
			<div class="piece2_bd">
				<!-- 主题详细 -->
				<div id="topic_head" eventID="{$eventinfo['id']}">
					<div class="topic_info">
						<!--{getuser $eventinfo['uid'] 0 'm,64' ',u_name fl'}-->
						<div>
							<h1>{$eventinfo['title']}</h1>
							<br />
							{lang thread_starter}：<!--{getuser $eventinfo['uid'] 0 '' 'u_name'}--><br />
							{lang create_yu}：<a href="{$eventinfo['share']['url']}" target="_blank">{$eventinfo['share']['time']}</a> 
							<span style="padding: 0 10px;">{lang post_count}：<a href="#publish_topic" >{echo intval($eventinfo['thread_count'])}</a></span> 
							<span style="padding: 0px 10px 0px 0px;">{lang click_count}：{$eventinfo['share']['click_count']}</span> <br />
						</div>
					</div>
					<pre class="topic_intro">{$eventinfo['share']['content']}</pre>
					<div class="topitter" id="topitter_{$eventinfo['share_id']}">
						<div class="pics">
							<!--{loop $eventinfo['share']['imgs'] $img}-->
							<!--{if $img['type'] == 'm'}-->
							<div class="SHOW_BIG_PIC r3 img" w="tpc">
								<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($img['id'],'photo');"></a>
								<div class="tlc">
									<img original="{getimg $img['img'] 468 468}" src="./tpl/images/lazyload.gif" class="fl lazyload" scaleType="1" scaleWidth="468" scaleHeight="468" updateParentSize="1"/>
									<!--{if !empty($img['alt'])}-->
									<p>{$img['alt']}</p>
									<!--{/if}-->
								</div>
							</div>
							<!--{else}-->
							<div class="r3 g img" w="tpc">
								<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($img['id'],'goods');"></a>
								<div class="tlc">
									<img original="{getimg $img['img'] 468 468}" src="./tpl/images/lazyload.gif" class="fl lazyload" scaleType="1" scaleWidth="468" scaleHeight="468" updateParentSize="1"/>
									<!--{if !empty($img['alt'])}-->
									<p>{$img['alt']}</p>
									<!--{/if}-->
								</div>
								<div class="pic_b_hd">
									<div class="pic_b_hd">
										<a class="mg_slink ofh" href="{$img['to_url']}"{$img['tdj']} c="" s="" target="_blank" ref="nofollow">{cutstr $img['name'] 30}</a>
										<div class="g_p"><span>{echo priceFormat($img['price'])}</span></div>
										<a href="{$img['to_url']}"{$img['tdj']} class="buy_it" target="_blank"/></a>
									</div>
								</div>
							</div>
							<!--{/if}-->
							<!--{/loop}-->
							<br class="clear">
						</div>
						<div class="wb_infobar">
							<a href="javascript:void(0);" class="fw " onclick="$('.TOPIC_RELAY').toggle();">{lang share_relay}</a> 
							<!--<a w="tpk" href="javascript:;" class="share fr">{lang share}</a> -->
							<!--{if $eventinfo['share']['share_data'] != 'default'}-->
							<a w="tpk" href="javascript:;" class="fav" onclick="$.Fav_Share({$eventinfo['share_id']},this,32,'#topitter_{$eventinfo['share_id']}');"></a>
							<div class="favDiv"><span class="favCount SHARE_FAV_COUNT">{$eventinfo['share']['collect_count']}</span><i></i></div>
							<!--{/if}-->
						</div>
						<div class="TOPIC_RELAY cf_b" style="display:none;">
							<form>
							<img class="cf_a" src="./tpl/images/commnet_arrow.png">
							<div class="cf_pub_b r5">
								<a href="javascript:;" onclick="$.Show_Expression(this);" class="fl"><img w="f" class="add_face fl" src="./tpl/images/add_face_c.png"></a>
								<textarea class="PUB_TXT pub_txt fl rl3" name="content" position="0"></textarea>
								<input type="button" class="pub_btn fl rr3" value="{lang share_relay}"  onclick="$.Add_Share_Relay(this)">
								<div class="cf_opt">
									<input type="checkbox" class="c_cb" name="is_comment_parent" value="1" checked="checked"><label for="c_cb">{lang also_one_comment}</label>
								</div>
								<input type="hidden" name="share_id" value="{$eventinfo['share_id']}" />
							</div>
							</form>
						</div>
						<ul class="SHARE_FAV_LIST u_like">
							<!--{loop $user_share_collect $collect_uid}-->
							<li><!--{getuser $collect_uid 0 's,32' ',icard r3'}--></li>
							<!--{/loop}-->
						</ul>
					</div>
				</div>
			</div>
			<div class="piece2_ft"></div>
		</div>
		<div id="topic_body">
			<div class="piece2 mt20">
				<div class="piece2_hd"></div>
				<div id="topic_discussion_list" class="piece2_bd">
					<?php
						$is_join_group = 1;
						$post_topic_content = '#'.$eventinfo['title'].'# ';
						$post_topic_tid = $eventinfo['id'];
						$post_topic_module = 'event';
						$post_topic_action = 'post';
					?>
					<!--{template inc/share/topic_publish}-->
					<!-- 微博列表 -->
					{$post_html}
					<!-- 分页  -->
				</div>
				<div class="piece2_ft"></div>
			</div>
		</div>
	</div>
	<div id="sidebar" class="fr">
		<!--{template inc/event/event_right}-->
	</div>
	<div class="clear"></div>
</div>
<!--{if getIsManage('ask')}-->
<script type="text/javascript">
jQuery(function($){
	$('#topic_head').hover(function(){
		var eventID = this.getAttribute('eventID');
		$.GetManageMenu('event',eventID,this);
	},function(){});
});
</script>
<!--{/if}-->
<!--{template inc/footer}-->